<div id="edit" class="editbox">
<div class="container">
  <% form_for :post, :url => post_path(:format => 'js',:forum_id => @post.forum_id, :topic_id => @post.topic_id, :id => @post),
    :html => {:method => :put,:multipart => true, :target => 'upload_frame'}, :before => "$('editbox_spinner').show();" do |f| -%>

  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td rowspan="2" width="70%">
        <p><%= f.text_area :body, :rows => 10, :id => "edit_post_body" %></p>
		<p><%= render :partial => "attachment_show", :locals => {:post => @post,:source => 'edit'} %></p>
		<p><%= render :partial => "topics/attachment_form", :locals => {:text_area_id => 'edit_post_body'}%></p>
      </td>
      <td valign="top">

        <%= link_to(_('delete post'), post_path(:forum_id => @post.topic.forum, :topic_id => @post.topic, :id => @post, :page => params[:page]), 
              :class => "utility", :method => :delete, :confirm => _("Delete this post?  Are you sure?")) %>


        <h5><%= _('Formatting Help') %></h5>

        <ul class="help"><br />
          <li><%= _('*bold*') %></li><br />格式说明： *(文字)*  文字则显示为粗体<br />
          <br />
          <li><%= _('_italics_') %></li><br />格式说明：_(文字)_  文字则显示为斜体<br />
        </ul>

      </td>
    </tr>
    <tr>
      <td valign="bottom" style="padding-bottom:15px;">
        <%= ajax_spinner_for "editbox", "spinner_black.gif" %>
        <%= submit_tag _('Save Changes'), :or => link_to_function(_('cancel'), "EditForm.cancel()") %>
      </td>
    </tr>
  </table>
  <% end -%>
</div>
</div>